Fix emacsclient bug where "-n -c" does not open a new frame on Windows.
authorJuanma Barranquero <lekktu@gmail.com>
Sun, 4 Dec 2011 17:13:01 +0000 (18:13 +0100)
committerJuanma Barranquero <lekktu@gmail.com>
Sun, 4 Dec 2011 17:13:01 +0000 (18:13 +0100)
commit7a8beabd8f93564cffe128e89c7449c016f473f4
tree7175578abfbdb7fd32e2d845163cfc62745a0b9a
parenteaf839a3917716025941b52d24b68135200b2fea
Fix emacsclient bug where "-n -c" does not open a new frame on Windows.

* lib-src/emacsclient.c (decode_options) [WINDOWSNT]: Don't force tty = 0;
instead, treat both -c and -t as always requesting a new "tty" frame,
and let server.el decide which kind is actually required.
Reported by Uwe Siart <usenet@siart.de> in this thread:
http://lists.gnu.org/archive/html/emacs-devel/2011-11/msg00303.html

* lisp/server.el (server-delete-client): On Windows, do not try to delete
the only terminal.
(server-process-filter): On Windows, treat requests for a tty frame as
if they were for a GUI frame if the running server is in GUI mode.
lib-src/ChangeLog
lib-src/emacsclient.c
lisp/ChangeLog
lisp/server.el